home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
holdit10.zip
/
DEMO.BAT
next >
Wrap
DOS Batch File
|
1993-05-05
|
1KB
|
60 lines
@echo off
cls
:start
echo
echo Hit ESC to quit
HOLDIT 4
if errorlevel = 200 goto err200
if errorlevel = 100 goto err100
if errorlevel = 10 goto err10
if errorlevel = 9 goto err9
if errorlevel = 8 goto err8
if errorlevel = 7 goto err7
if errorlevel = 6 goto err6
if errorlevel = 5 goto err5
if errorlevel = 4 goto err4
if errorlevel = 3 goto err3
if errorlevel = 2 goto err2
if errorlevel = 1 goto err1
if errorlevel = 0 goto err0
:err200
echo You hit ESC, bye bye
HOLDIT 2 > NUL
exit
:err100
echo The returned code was 100
goto start
:err10
echo The returned code was 10
goto start
:err9
echo The returned code was 9
goto start
:err8
echo The returned code was 8
goto start
:err7
echo The returned code was 7
goto start
:err6
echo The returned code was 6
goto start
:err5
echo The returned code was 5
goto start
:err4
echo The returned code was 4
goto start
:err3
echo The returned code was 3
goto start
:err2
echo The returned code was 2
goto start
:err1
echo The returned code was 1
goto start
:err0
echo The returned code was 0
goto start